# Contributor: fossdd <fossdd@pwned.life>
# Maintainer: fossdd <fossdd@pwned.life>
pkgname=hare-http
pkgver=0_git20240304
_commit=cfdb921520a19c8b3ea8cc23f9f27d803b4f5eab
pkgrel=0
pkgdesc="HTTP(s) support for Hare"
url="https://git.sr.ht/~sircmpwn/hare-http"
arch="noarch !armhf !armv7 !ppc64le !s390x !x86 !loongarch64" # blocked by hare
license="MPL-2.0"
checkdepends="hare"
source="$pkgname-$_commit.tar.gz::https://git.sr.ht/~sircmpwn/hare-http/archive/$_commit.tar.gz"
builddir="$srcdir/$pkgname-$_commit"

check() {
	hare test
}

package() {
	install -vdm755 "$pkgdir/usr/src/hare/third-party"
	cp -Rdv "net" "$pkgdir/usr/src/hare/third-party"
}

sha512sums="
193107536260e1c89727657cb299fa75639ef73591ed430668fa2ef6b491ee59b88ac1dd6b40dd0efe35d62deddcb6ea7cb8b7e0b9a868d6e3524912adc941fc  hare-http-cfdb921520a19c8b3ea8cc23f9f27d803b4f5eab.tar.gz
"
